﻿using System.Collections.Generic;
using System.Runtime.Serialization;

namespace IMDBApi.Contracts.Entities.Person.Photos
{
    [DataContract]
    public class Photos
    {
        [DataMember(Name = "exp")]
        public int Exp { get; set; }

        [DataMember(Name = "data")]
        public Data Data { get; set; }
    }

    [DataContract]
    public class Data
    {
        [DataMember(Name = "photos")]
        public List<Photo> Photos { get; set; }

        [DataMember(Name = "nconst")]
        public string Nconst { get; set; }

        [DataMember(Name = "name")]
        public string Name { get; set; }
    }

    [DataContract]
    public class Photo
    {
        [DataMember(Name = "image")]
        public Image Image { get; set; }

        [DataMember(Name = "copyright")]
        public string Copyright { get; set; }

        [DataMember(Name = "caption")]
        public string Caption { get; set; }
    }

    [DataContract]
    public class Image
    {
        [DataMember(Name = "width")]
        public int Width { get; set; }

        [DataMember(Name = "url")]
        public string Url { get; set; }

        [DataMember(Name = "height")]
        public int Height { get; set; }
    }
}
